﻿#coding:utf-8

#初始化模块

__all__ = [
'conv', 'ed', 'stdio', 'lisp', 'command', 'panel', 'showtime', 'pye',
'help', 'switch', 'flatten']

from mgdnss import *
from wraps import *
ed()

from NFox.Pycad.Core.Modules import conv, pye, command, lisp, panel, io

def _write(s):
    ed.WriteMessage(s)

def _read():
    from System import Environment
    opts = aced.PromptStringOptions('')
    opts.AllowSpaces = True
    res = ed.GetString(opts)
    buf = Environment.NewLine
    if res.Status == aced.PromptStatus.OK:
        buf = res.StringResult + buf
    return buf

import sys
stdio = io()
sys.stdin = sys.stdout = sys.stderr = stdio
stdio.setdefault(_read, _write)

__all__ += mgdnss.__all__
mgds = mgdnss._mgds

#设置中文支持
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
